package xyz.lament.springehcache;

import java.util.HashMap;
import java.util.Map;

public class UserStore {

	private static Map<String,UserBean> userMap = new HashMap<String,UserBean>();
		
	public static UserBean getUser(String uid)
	{
		return userMap.get(uid);
	}
	
	public static void setUser(UserBean user)
	{
		userMap.put(user.getUid(),user);
	}

	public static void deleteUser(String uid) {
		userMap.remove(uid);		
	}
}
